package ynu.edu.ky_elm_springboot3.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import ynu.edu.ky_elm_springboot3.po.Business;

import java.util.List;

@Mapper
public interface BusinessMapper {
    @Select("SELECT * FROM business WHERE orderTypeId = #{orderTypeId}")
    List<Business> listBusinessByOrderTypeId(Integer orderTypeId);

    @Select("SELECT * FROM business WHERE businessId = #{businessId}")
    Business getBusinessById(Integer businessId);
} 